﻿@model Panorama.Web.ViewModels.RegisterViewModel
@{
    ViewBag.Title = "Create User";
}


@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", @autocomplete = "off" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()
    <div class="form-group">
        @Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })
        <div class="col-md">
            @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", @autocomplete = "off" })
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })
        <div class="col-md">
            @Html.PasswordFor(m => m.Password, new { @class = "form-control", @autocomplete = "off" })
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
        <div class="col-md">
            @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control", @autocomplete = "off" })
        </div>
    </div>
    <div class="form-group inline">
        @Html.LabelFor(m => m.IsDomain, new { @class = "col-md-2 control-label" })
        @Html.CheckBoxFor(m => m.IsDomain, new { @class = "form-control", @autocomplete = "off", @id = "domain" })
    </div>
    <div class="form-group hidden" id="domaincombo">
        <div class="col-md">
            @Html.DropDownList("SelectedDomain", Model.Domains, "Select Domain")
        </div>
    </div>

    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <button type="submit">Create</button>
        </div>
    </div>
}

@section Scripts {
   
    @Scripts.Render("~/Scripts/jquery")
    @Scripts.Render("~/Scripts/register")
    @Scripts.Render("~/bundles/jqueryval")
}
